CC = gcc
OPT = 
COMMON_LINK = -lnetfilter_queue
SOURCES = main.c

OBJS = $(subst .c,.o,$(SOURCES))

all: $(OBJS)
	$(CC) $(OPT) $(^F) $(COMMON_LINK) -o ipbalance

main.o: main.c
	$(CC) -c $(OPT) $< $(COMMON_LINK) -o $@

clean:
	rm *.o
